package com.share.bean.site;

import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="share_siteNaviItem")
public class SiteNaviItem {
	
	private int id;

	/** 导航条分类名称 */
	private String sitemNItemName;

	/** 导航条分类是否显示 */
	private Boolean isShow;
	
	/** 模板名称 */
	private String templateName ;
	
	/** HTML文件输出名称 */
	private String exportHtmlName ;

	/** 添加时间 */
	private Date addTime;

	private Set<SiteNavi> siteNavi ;

	public Date getAddTime() {
		return addTime;
	}

	public String getExportHtmlName() {
		return exportHtmlName;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	
	public Boolean getIsShow() {
		return isShow;
	}
	
	public String getSitemNItemName() {
		return sitemNItemName;
	}

	@OneToMany(mappedBy="siteNaviItem")
	@JoinColumn(name="sni_id")
	public Set<SiteNavi> getSiteNavi() {
		return siteNavi;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public void setExportHtmlName(String exportHtmlName) {
		this.exportHtmlName = exportHtmlName;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setIsShow(Boolean isShow) {
		this.isShow = isShow;
	}

	public void setSitemNItemName(String sitemNItemName) {
		this.sitemNItemName = sitemNItemName;
	}

	public void setSiteNavi(Set<SiteNavi> siteNavi) {
		this.siteNavi = siteNavi;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

}
